package org.jiajie.designpatterndemo.ocp.segmentfault;

/**
 * 测试类
 * @author jay
 */
public class Test {
    public static void main(String[] args) {
        Computer computer = new AsusComputer(4888.88D,"blue", 8, 14.0F);
        System.out.println("电脑：华硕\n" +
                "售价：" + computer.getPrice() + "\n" +
                "颜色：" + computer.getColor() + "\n" +
                "内存：" + computer.getMemory() + "\n" +
                "尺寸：" + computer.getSize()  );
    }
}
